package com.test.dao;

import com.test.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDAO {
    List<User> getUserList();
    User getUserById(int id);
    int insert(User user);
    int update(User user);
    int delete(User user);
    List<User> getUserLike(String name);
    List<User> getUserLimit(@Param("startIndex") int startIndex, @Param("pageSize") int pageSize);
}
